﻿using System.Windows;

namespace BlockMix.Utilities
{
    internal static class AppContext
    {
        static AppContext()
        {
            ScreenSize = new Size(SystemParameters.PrimaryScreenWidth, SystemParameters.PrimaryScreenHeight);

            // @todo - This must and ajusted acording to resolution 
            ApplicationSize = new Size(800, 450);
            BlockSize = new Size(40, 40);

            GameBlockSize = new Size(20, 10);
        }

        internal static Size ApplicationSize { get; private set; }

        internal static Size BlockSize { get; private set; }

        internal static Size GameBlockSize { get; private set; }

        internal static Size ScreenSize { get; private set; }

        internal static Point ContainerPointToLocation(int x, int y)
        {
            var blockSize = BlockSize;
            return new Point(x*blockSize.Width, y*blockSize.Height);
        }

    }
}
